﻿<%@ Page Title="Thông tin tài khoản" Language="C#" MasterPageFile="~/App_MasterPages/Aquarius.Master" AutoEventWireup="true" CodeBehind="AccountInfoManagment.aspx.cs" Inherits="Anuntiomatic.Server.ManageList.AccountInfoManagment" %>
<%@ Register Src="../UserControl/ucPaging.ascx" TagName="ucPaging" TagPrefix="uc1" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ScriptContent" runat="server">
    <script type="text/javascript">
        $(document).ready(function () {
            RegisterDialog();
        });
    </script>
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="MainContent" runat="server">
    <div class="row-fluid">
        <div class="head">
            <div class="isw-grid"></div>
            <h1>Điều kiện tìm kiếm</h1>
            <div class="clear"></div>
        </div>
        <div class="block-fluid" style="padding: 10px 0px 5px 10px">
            <table>
                <tbody>
                    <tr>
                        <td style="width:100px; text-align:center">Email</td>
                        <td><asp:TextBox ID="txtSearchEmail" runat="server" /></td>
                        <td style="width:100px; text-align:center">Trạng thái</td>
                        <td>
                            <asp:DropDownList ID="ddlSearchLicenseInfo" runat="server">
                                <asp:ListItem Value="" Text="" />
                                <asp:ListItem Value="false" Text="Chưa hết hạn" />
                                <asp:ListItem Value="true" Text="Đã hết hạn" />
                            </asp:DropDownList>
                        </td>
                    </tr>
                </tbody>
            </table>
            <div style="text-align: center">
                <asp:Button ID="btnSearch" runat="server" Text="Tìm kiếm" CssClass="btn" 
                    onclick="btnSearch_Click" />
            </div>
        </div>
    </div>
    <div class="row-fluid">
    <div class="span12">
        <div class="head">
            <div class="isw-grid"></div>
            <h1>Người dùng</h1>
            <div class="clear"></div>
        </div>
        <div class="block-fluid table-sorting">
            <div class="dataTables_wrapper" id="tSortable_wrapper">
                <div>
                    <uc1:ucPaging ID="pagingtop" runat="server" Visible="false" />
                </div>
                <asp:GridView ID="grvSysUser" class="dataTables_wrapper table2 dataTable" runat="server"
                    AutoGenerateColumns="false" ShowHeaderWhenEmpty="true" 
                    onrowcommand="grvSysUser_RowCommand">
                    <Columns>
                        <asp:TemplateField HeaderText="Stt" ItemStyle-CssClass="STT">
                            <ItemTemplate><%#(Container.DataItemIndex + 1) + (pagingtop.CurrentPage - 1) * pagingtop.PageSize%></ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField HeaderText="Email" DataField="Email" />
                        <asp:BoundField HeaderText="Tài khoản anu" DataField="AnuntiomaticAccount" ItemStyle-CssClass="width4"/>
                        <asp:BoundField HeaderText="Ngày đăng ký" DataField="RegisterDate" ItemStyle-CssClass="DateTime2" DataFormatString="{0:dd/MM/yyyy HH:mm:sss}" />
                        <asp:BoundField HeaderText="Ngày hết hạn" DataField="LicenseTo" ItemStyle-CssClass="DateTime2" DataFormatString="{0:dd/MM/yyyy HH:mm:sss}" />
                        <asp:TemplateField HeaderText="Chức năng" ItemStyle-Width="175px" ItemStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <asp:LinkButton ID="lbtnEdit" Text="Gia hạn" runat="server"
                                            CommandName="Editing" CommandArgument='<%#Eval("Email")%>' ItemStyle-CssClass="Function"/>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
                <div class="dataTables_info" id="tSortable_info">
                    <asp:Literal ID="ltrInfo" runat="server" />
                </div>
                <div class="clear"></div>
            </div>
        </div>
    </div>
    </div>
    <div class="dialog" id="dialog-form" style="display: none; width: 600px; height: 600px;" title="Thông tin gia hạn">
        <asp:panel ID="dialogPanel" runat="server" CssClass="block">
            <asp:HiddenField ID="hdfObjectId" runat="server" />
            <table width ="100%">
                <tr>
                    <td>Email &nbsp;</td>
                    <td><asp:TextBox ID="txtEmail" runat="server" Enabled="false"/></td>
                    <td>&nbsp;</td>
                </tr>
                <tr>
                    <td>Gia hạn thêm</td>
                    <td><asp:DropDownList ID="ddlExtension" runat="server" />&nbsp</td>
                    <td>Ngày</td>
                </tr>
            </table>
            <div style="text-align:center; color:Red">
                <asp:Label ID="lbEditMsg" runat="server" />
            </div>
            <div class="dr"><span></span></div>
            <div style="text-align: right">
                <asp:Button ID="btnSave" CssClass="btn" runat="server" Text="Lưu" OnClick= "btnSave_Click"/>
                <input type="button" class="btn" value="Đóng" onclick="$('#dialog-form').dialog('close'); return false;" />
            </div>
        </asp:panel>
    </div>
</asp:Content>
